package com.imooc.articles_mongodb_project.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Data
@Document(collection = "likes")
@Accessors(chain = true)
public class Likes implements Serializable {

    @Id
    private String id;

    @Field("like_user")
    private String[] likeUser;

}
